/*
** my_concat_slash.c for  in /home/georgi_v/rendu/PSU_2013_my_ls/libs
** 
** Made by georgi_v
** Login   <georgi_v@epitech.net>
** 
** Started on  Thu Nov  7 17:47:01 2013 georgi_v
** Last update Fri Dec  6 18:26:38 2013 georgi_v
*/

#include "my.h"

char    *my_str_slash_concat(char *str1, char *str2)
{
  char	*ret;
  int	cnt;
  int	cnt2;

  cnt = 0;
  cnt2 = 0;
  if ((ret = malloc(my_strlen(str1) + my_strlen(str2) + 2)) == NULL)
    return (NULL);
  while (str1[cnt])
    {
      ret[cnt] = str1[cnt];
      cnt++;
    }
  ret[cnt] = '/';
  cnt++;
  while (str2[cnt2])
    {
      ret[cnt] = str2[cnt2];
      cnt++;
      cnt2++;
    }
  ret[cnt] = '\0';
  return (ret);
}
